/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */
package info.peigen.hotpot.common.core.lang;

import info.peigen.hotpot.common.core.annotation.Comment;
import info.peigen.hotpot.common.core.enums.ElectricUnit;
import info.peigen.hotpot.common.core.lang.money.Money;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(UnitPrice)</b>
 * 单价
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/6/15
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class UnitPrice {
    @Comment(value = "价格")
    @Builder.Default
    Money        price        = Money.zero();
    @Comment(value = "电量")
    @Builder.Default
    ElectricUnit electricUnit = ElectricUnit.KW_H;

    public static UnitPrice zero() {
        return new UnitPrice();
    }
}